php forum
php mysql forum
php mysql smarty
 
Topic Options
#310934 - 07/30/06 02:42 AM [7.0] [Finished] - Admin edit message hack
AUS-CITY Offline
Newbie

Registered: 03/28/01
Posts: 16
Guys,

Here is my hack for UBB threads 7.0 This mod gives the admin the option of the radio button to edit ANY message and tick off the 'edited by'. It can easily be scripted to allow mods to do this as well.

Enjoy!

MOD START
*****

Admin No Edit hack mod 1.0 - UBB 7 beta 2
by aus-city
http://www.aus-city.com/ubbthreads/ubbthreads.php
files modified (1): /scripts/editpost.inc.php

Code:
Find:

	// Signature added to this post?
	$addsigcheck = "";
	if ($addsig) {
		$addsigcheck = "checked = \"checked\"";
	}
	$iconselect = $html -> icon_select($Icon);
	
	if ( $user['USER_ID'] == $Postedby ) {
		$markeditselect = "<input type=\"checkbox\" value=\"1\" name=\"markedit\" checked=\"checked\" class=\"form-checkbox\" /> {$ubbt_lang['MARK_EDIT']}
";


Code:
Replace with:

	// Signature added to this post?
	$addsigcheck = "";
	if ($addsig) {
		$addsigcheck = "checked = \"checked\"";
	}
	$iconselect = $html -> icon_select($Icon);
	
	if ( $user['USER_ID'] == $Postedby || $user['USER_MEMBERSHIP_LEVEL'] == "Administrator") {
		$markeditselect = "<input type=\"checkbox\" value=\"1\" name=\"markedit\" checked=\"checked\" class=\"form-checkbox\" /> {$ubbt_lang['MARK_EDIT']}
";
_________________________
Webmaster
AUS-CITY Space and General Interest Forums
http://www.aus-city.com/ubbthreads/ubbthreads.php

Top
#310936 - 07/30/06 01:43 PM Re: Finished [7.0] - Admin edit message hack [Re: AUS-CITY]
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Edited post to add code tags

Top
#310980 - 08/01/06 12:51 AM Re: Finished [7.0] - Admin edit message hack [Re: Ian Spence]
AUS-CITY Offline
Newbie

Registered: 03/28/01
Posts: 16
With beta 2 released they changed stuff, so did I so it still works, but use this now:

Admin No Edit hack mod 1.0 - UBB 7 beta 2
by aus-city
http://www.aus-city.com/ubbthreads/ubbthreads.php
files modified (1): /scripts/editpost.inc.php

Quote:
Find:

// Signature added to this post?
$addsigcheck = "";
if ($addsig) {
$addsigcheck = "checked = \"checked\"";
}
$iconselect = $html -> icon_select($Icon);

if ( $user['USER_ID'] == $Postedby ) {
$markeditselect = "<input type=\"checkbox\" value=\"1\" name=\"markedit\" checked=\"checked\" class=\"form-checkbox\" /> {$ubbt_lang['MARK_EDIT']}<br />";


Quote:
Replace with:

// Signature added to this post?
$addsigcheck = "";
if ($addsig) {
$addsigcheck = "checked = \"checked\"";
}
$iconselect = $html -> icon_select($Icon);

if ( $user['USER_ID'] == $Postedby || $user['USER_MEMBERSHIP_LEVEL'] == "Administrator") {
$markeditselect = "<input type=\"checkbox\" value=\"1\" name=\"markedit\" checked=\"checked\" class=\"form-checkbox\" /> {$ubbt_lang['MARK_EDIT']}<br />";
_________________________
Webmaster
AUS-CITY Space and General Interest Forums
http://www.aus-city.com/ubbthreads/ubbthreads.php

Top
#310982 - 08/01/06 03:35 AM Re: Finished [7.0] - Admin edit message hack [Re: AUS-CITY]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
I've updated the original post to reflect this change - I would move it to the version 7 forum, but the post move is not working at the moment frown Hopefully this will be fixed in b3 smile

Thanks for the update.
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#311001 - 08/02/06 02:00 AM Re: Finished [7.0] - Admin edit message hack [Re: Ian_W]
AUS-CITY Offline
Newbie

Registered: 03/28/01
Posts: 16
Hi Ian!

No problems can leave it here until beta 3 comes out smile I probably have to do a beta 3 revision then anyway! smile
_________________________
Webmaster
AUS-CITY Space and General Interest Forums
http://www.aus-city.com/ubbthreads/ubbthreads.php

Top
#311034 - 08/03/06 01:50 PM Re: Finished [7.0] - Admin edit message hack [Re: AUS-CITY]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Bug is fixed smile
_________________________
- Allen wavey
- What Drives You?

Top
#311082 - 08/05/06 06:39 AM Re: Finished [7.0] - Admin edit message hack [Re: AllenAyres]
AUS-CITY Offline
Newbie

Registered: 03/28/01
Posts: 16
Allen,

Any chance of the fixes required for beta2 for the moving bug? I would like to apply to my forums as I don't know how long to beta3.

Thanks!
_________________________
Webmaster
AUS-CITY Space and General Interest Forums
http://www.aus-city.com/ubbthreads/ubbthreads.php

Top
#311088 - 08/05/06 10:45 AM Re: Finished [7.0] - Admin edit message hack [Re: AUS-CITY]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
I posted it in the announcements forum smile
_________________________
- Allen wavey
- What Drives You?

Top
#311165 - 08/09/06 06:11 PM Re: Finished [7.0] - Admin edit message hack [Re: AllenAyres]
AUS-CITY Offline
Newbie

Registered: 03/28/01
Posts: 16
Guys,

I upgraded my boards to beta 3 and just to let you know the hack I did for beta 2 holds exactly the same for beta 3.

Cheers!
_________________________
Webmaster
AUS-CITY Space and General Interest Forums
http://www.aus-city.com/ubbthreads/ubbthreads.php

Top



Moderator:  sirdude 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks